problem with partition map preven from booting, after bootcamp and change partition table map

Hi,


I was trying to install windows using bootcamp on my macbook pro 2011, however I messed up with my partition table map, and now I'm not able to boot my mac os, the disk utility cant repair my disk and i dont have back up. i really need my data. I'm able to boot into GParted and use gdisk, how can i fix back the partition table map so that i can boot back to my Mac OSx.


thanks

MacBook Pro, OS X El Capitan (10.11.6)

Posted on Aug 15, 2016 7:13 AM

Reply
19 replies

Aug 15, 2016 7:45 AM in response to sina370

-bash-3.2# fdisk /dev/disk0

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 1023 254 63 - 1023 254 63 [ 1 - 976773167] <Unknown ID>

2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

-bash-3.2#

-bash-3.2# diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI 209.7 MB disk0s1

2: Apple_CoreStorage 372.0 GB disk0s2

3: Apple_Boot Boot OS X 650.0 MB disk0s3

4: Apple_HFS Untitled 127.1 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme *1.4 GB disk1

1: Apple_partition_map 30.7 KB disk1s1

2: Apple_Driver_ATAPI 2.0 KB disk1s2

3: Apple_HFS Mac OS X Base System 1.4 GB disk1s3

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: untitled *524.3 KB disk2

/dev/disk3

#: TYPE NAME SIZE IDENTIFIER

0: untitled *524.3 KB disk3

/dev/disk4

#: TYPE NAME SIZE IDENTIFIER

0: untitled *524.3 KB disk4

/dev/disk5

#: TYPE NAME SIZE IDENTIFIER

0: untitled *524.3 KB disk5

/dev/disk6

#: TYPE NAME SIZE IDENTIFIER

0: untitled *524.3 KB disk6

/dev/disk7

#: TYPE NAME SIZE IDENTIFIER

0: untitled *6.3 MB disk7

/dev/disk8

#: TYPE NAME SIZE IDENTIFIER

0: untitled *2.1 MB disk8

/dev/disk9

#: TYPE NAME SIZE IDENTIFIER

0: untitled *1.0 MB disk9

/dev/disk10

#: TYPE NAME SIZE IDENTIFIER

0: untitled *524.3 KB disk10

/dev/disk11

#: TYPE NAME SIZE IDENTIFIER

0: untitled *524.3 KB disk11

/dev/disk12

#: TYPE NAME SIZE IDENTIFIER

0: untitled *1.0 MB disk12

/dev/disk13

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *2.1 GB disk13

1: DOS_FAT_32 MYLINUXLIVE 2.1 GB disk13s1

/dev/disk14

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS MacintoshHD *371.7 GB disk14

-bash-3.2#

-bash-3.2#

-bash-3.2# fdisk

usage: fdisk [-ieu] [-f mbrboot] [-c cyl -h head -s sect] [-S size] [-r] [-a style] disk

-i: initialize disk with new MBR

-u: update MBR code, preserve partition table

-e: edit MBRs on disk interactively

-f: specify non-standard MBR template

-chs: specify disk geometry

-S: specify disk size

-r: read partition specs from stdin (implies -i)

-a: auto-partition with the given style

-d: dump partition table

-y: don't ask any questions

-t: test if disk is partitioned

`disk' is of the form /dev/rdisk0.

auto-partition styles:

boothfs 8Mb boot plus HFS+ root partition (default)

hfs Entire disk as one HFS+ partition

dos Entire disk as one DOS partition

raid Entire disk as one 0xAC partition

-bash-3.2# gpt -r show l /dev/disk0

gpt show: unable to open device 'l': No such file or directory

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 726609000 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

727018640 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

728288176 248222808 4 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

976510984 262151

976773135 32 Sec GPT table

976773167 1 Sec GPT header

Aug 15, 2016 6:48 PM in response to Loner T

-bash-3.2# diskutil repairDisk disk0

Repairing the partition map might erase disk0s1, proceed? (y/N) y

Started partition map repair on disk0

Checking prerequisites

Checking the partition list

Checking for an EFI system partition

Checking the EFI system partition's size

Checking the EFI system partition's file system

Checking all HFS data partition loader spaces

Reviewing boot support loaders

Checking Core Storage Physical Volume partitions

Checking storage system

Problems were encountered during repair of the partition map

Error: -69716: Storage system verify or repair failed

Underlying error: 1: POSIX reports: Operation not permitted

-bash-3.2#



when OSx wants to boot , the porhibited sign will comes up


when I use disk utility in online recovery to repair disk, it will show problem with partition map table prevent boot.


and when I get option key, it will shows up


thanks, please save me

Aug 16, 2016 6:17 AM in response to sina370

sina370 wrote:


I wanted to convert GPT to MBR using gdisk, and when I write to partitions, using expert and then n and w, after boot up the problem comes up.

This creates a new protective MBR, and removes the BC Assistant-created Hybrid MBR. This should not prevent OS X from booting.



can i use time machine from online recovery, to back up my stuff ? and do the upgrade ?

If you do not have a functional OS X, your backup will not contain anything reasonable. Do you have an external disk on which you can install OS X using the link I provided earlier?

Aug 16, 2016 7:50 AM in response to Loner T

here is the output


Last login: Wed Aug 17 00:42:56 on console

sinas-MacBook-Pro:~ sina370$

sinas-MacBook-Pro:~ sina370$ diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage MacintoshHD 372.0 GB disk0s2

3: Apple_Boot Boot OS X 650.0 MB disk0s3

4: Apple_HFS Untitled 127.1 GB disk0s4

/dev/disk1 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk1

1: EFI EFI 209.7 MB disk1s1

2: Apple_HFS Segate Slim Drive 499.2 GB disk1s2

3: Apple_Boot Recovery HD 650.0 MB disk1s3

/dev/disk2 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS MacintoshHD +371.7 GB disk2

Logical Volume on disk0s2

A72E4C13-3B21-4915-AAB8-E85E6A0E6A55

Unencrypted

sinas-MacBook-Pro:~ sina370$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group 5E26CF94-90A6-4DBB-BB10-0F5ECBBF98F0

=========================================================

Name: MacintoshHD

Status: Online

Size: 372023808000 B (372.0 GB)

Free Space: 18972672 B (19.0 MB)

|

+-< Physical Volume 1C88D194-845F-48D9-9927-595C984C618B

| ----------------------------------------------------

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 372023808000 B (372.0 GB)

|

+-> Logical Volume Family 8F69FE2D-A734-4439-89D1-B7ECE9E5FBFE

----------------------------------------------------------

Encryption Type: AES-XTS

Encryption Status: Unlocked

Conversion Status: Converting (backward)

Reversion State: Reverting

High Level Queries: Not Fully Secure

| Has Visible Users

| Has Volume Key

|

+-> Logical Volume A72E4C13-3B21-4915-AAB8-E85E6A0E6A55

---------------------------------------------------

Disk: disk2

Status: Online

Size (Total): 371652513792 B (371.7 GB)

Conversion Progress: 9%

Revertible: Yes (unlock and decryption required)

LV Name: MacintoshHD

Volume Name: MacintoshHD

Content Hint: Apple_HFS

sinas-MacBook-Pro:~ sina370$ sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

gpt show: /dev/disk0: PMBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: /dev/disk0: Sec GPT at sector 976773167

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 726609000 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

727018640 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

728288176 248222808 4 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

976510984 262151

976773135 32 Sec GPT table

976773167 1 Sec GPT header

sinas-MacBook-Pro:~ sina370$

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

problem with partition map preven from booting, after bootcamp and change partition table map

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.